import request from '@/utils/request'

// 查询老师布置的家庭作业列表
export function listTeacherHomework(query) {
  return request({
    url: '/system/teacherHomework/list',
    method: 'get',
    params: query
  })
}

// 查询老师布置的家庭作业详细
export function getTeacherHomework(id) {
  return request({
    url: '/system/teacherHomework/' + id,
    method: 'get'
  })
}

// 新增老师布置的家庭作业
export function addTeacherHomework(data) {
  return request({
    url: '/system/teacherHomework',
    method: 'post',
    data: data
  })
}

// 修改老师布置的家庭作业
export function updateTeacherHomework(data) {
  return request({
    url: '/system/teacherHomework',
    method: 'put',
    data: data
  })
}

// 删除老师布置的家庭作业
export function delTeacherHomework(id) {
  return request({
    url: '/system/teacherHomework/' + id,
    method: 'delete'
  })
}
